home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / DASHANIM.ZIP / PLAYDSH.ZIP / PLAYDSH.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-26  |  773 b   |  23 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <conio.h>
  4. #include "dashanim.h"
  5.  
  6. int main(int argc, char* argv[]){
  7.   printf("\nPlayDSH Animation File Player for .DSH format animation files.\n");
  8.   printf("By Eric M. Dashofy\n");
  9.   printf("Copyright 1995 Eric M. Dashofy / Archon Software\n");
  10.   printf("All Rights Reserved.");
  11.   if (argc != 3){
  12.     printf("\n\nIncorrect number of arguments.\n");
  13.     printf("\n\nUsage:  PLAYDSH [file].DSH [delay]\n");
  14.     printf("\nWhere file is the filename of the animation file, and\n");
  15.     printf("delay is the delay between frames in milliseconds.\n");
  16.     printf("\n");
  17.     return -1;
  18.   }
  19.   printf("\nPress any key to stop.\n");
  20.   delay(2000);
  21.   while (!kbhit()) playdsh(argv[1], atoi(argv[2]));
  22.   return 0;
  23. }